#include "abstractstate.h"
#include "statemanager.h"

AbstractState::AbstractState(const QString &stateId, StateManager &sm) :
    QObject(&sm)
  , m_stateId(stateId)
  , m_sm(sm)
{
}

void AbstractState::enter()
{

}

void AbstractState::exit()
{

}

StateManager &AbstractState::stateManager()
{
    return m_sm;
}

const QString &AbstractState::stateId() const
{
    return m_stateId;
}
